package com.epaylinks.serviceprovider.service;

import org.apache.log4j.Logger;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues="hello")
public class MQReceiverService {

	private final Logger logger = Logger.getLogger(getClass());
	@RabbitHandler
	public void process(String hello)
	{
		logger.info("Receiver: "+hello);
	}
}
